<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'student-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'roll_no'); 
		echo $form->textField($model,'roll_no',array('size'=>15,'maxlength'=>15));
		echo $form->error($model,'roll_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'enrollment_no'); 
		echo $form->textField($model,'enrollment_no',array('size'=>15,'maxlength'=>15)); 
		echo $form->error($model,'enrollment_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'first_name'); 
		echo $form->textField($model,'first_name',array('size'=>60,'maxlength'=>100)); 
		echo $form->error($model,'first_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'middle_name'); 
		echo $form->textField($model,'middle_name',array('size'=>60,'maxlength'=>100)); 
		echo $form->error($model,'middle_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'last_name'); 
		echo $form->textField($model,'last_name',array('size'=>60,'maxlength'=>100)); 
		echo $form->error($model,'last_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date_of_birth');
		$this->widget('zii.widgets.jui.CJuiDatePicker', array(
		    'name'=>'date_of_birth',
		    // additional javascript options for the date picker plugin
		    'options'=>array(
		        'showAnim'=>'fold',
		        'dateFormat'=>Yii::app()->params['date_format'],
		    ),
		    'htmlOptions'=>array(
		        'readonly'=>"readonly"
		    ),
		));
		echo $form->error($model,'date_of_birth'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date_of_entry'); 
			$this->widget('zii.widgets.jui.CJuiDatePicker', array(
		    'name'=>'date_of_entry',
		    // additional javascript options for the date picker plugin
		    'options'=>array(
		        'showAnim'=>'fold',
		        'dateFormat'=>Yii::app()->params['date_format'],
		    ),
		    'htmlOptions'=>array(
		        'readonly'=>"readonly"
		    ),
		));
		echo $form->error($model,'date_of_entry'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'class_of_entry'); 
			$this->widget('zii.widgets.jui.CJuiDatePicker', array(
		    'name'=>'class_of_entry',
		    // additional javascript options for the date picker plugin
		    'options'=>array(
		        'showAnim'=>'fold',
		        'dateFormat'=>Yii::app()->params['date_format'],
		    ),
		    'htmlOptions'=>array(
		        'readonly'=>"readonly"
		    ),
		));
		echo $form->error($model,'class_of_entry'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'current_class'); 
		echo $form->textField($model,'current_class'); 
		echo $form->error($model,'current_class'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'academic_session');
		echo $form->textField($model,'academic_session'); 
		echo $form->error($model,'academic_session'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'passport_no'); 
		echo $form->textField($model,'passport_no',array('size'=>20,'maxlength'=>20)); 
		echo $form->error($model,'passport_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'blood_group'); 
		echo $form->textField($model,'blood_group',array('size'=>10,'maxlength'=>10));
		echo $form->error($model,'blood_group'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'house_id'); 
		echo $form->textField($model,'house_id');
		echo $form->error($model,'house_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sibling_id');
		echo $form->textField($model,'sibling_id');
		echo $form->error($model,'sibling_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->